<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <link rel="stylesheet" href="__STATIC__/layuimini/lib/layui-v2.6.3/css/layui.css" media="all">
    <title>Title</title>
</head>
<!--导航栏的style-->
<style>
    .main{
        height: calc( 100vh );
        display: flex;
        float: left;
    }
    .ulleft{
        height: 100%;
    }
    .logOff{
        position: fixed;
        bottom: -286px;
    }
</style>
<!--本页style-->
<style>
    .submit_title_text{
        position: fixed;
        top: 180px;
        left: 600px;
        font-size: 25px;
    }
    .submt_title_input{
        position: fixed;
        top: 180px;
        left: 750px;
    }

    .submit_title_btn{
        position: fixed;
        top: 430px;
        left: 1000px;
    }

    .submit_teacher_text{
        position: fixed;
        top: 280px;
        left: 480px;
        font-size: 25px
    }

    .submt_teacher_input{
        position: fixed;
        top: 280px;
        left: 750px;
    }

    #ii{
        position: fixed;
        left: 200px;
        top: 0px;
    }
</style>
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
<script src="__STATIC__/layuimini/lib/layui-v2.6.3/layui.js" charset="utf-8"></script>
<script src="__STATIC__/layuimini/lib/jquery-3.4.1/jquery-3.4.1.min.js" charset="utf-8"></script>
<body>
<img id="ii" src="../../../static/img/捕获.JPG" alt="">
<!--导航栏   -->
<div class="main"  style="width: auto;">
    <ul  id="test" class="ulleft  layui-nav layui-nav-tree" lay-filter="test">
        <!-- 侧边导航: <ul class="layui-nav layui-nav-tree layui-nav-side"> -->
        <li class="layui-nav-item"><a href="http://cmf.yeeyeeyjy.top/lunwen/educational_login/login">毕业设计管理系统</a></li>
        <li class="layui-nav-item"><a href="">用户：{$Think.session.educational_name}</a></li>
        <li class="layui-nav-item"><a href=""></a></li>
        <li class="layui-nav-item"><a href="http://cmf.yeeyeeyjy.top/lunwen/educational_file_operate/downFile" >下载优秀毕业论文申请</a></li>
        <li class="layui-nav-item"><a href="http://cmf.yeeyeeyjy.top/lunwen/educational_file_operate/uploadFile">提交优秀毕业论文文件</a></li>
        <li class="layui-nav-item"><a href="http://cmf.yeeyeeyjy.top/lunwen/educational_to_out">提交到外部人员</a></li>
        <li class="layui-nav-item"><a href="http://cmf.yeeyeeyjy.top/lunwen/educational_to_out/seeFile">查看提交的文件</a></li>
        <li class="layui-nav-item"><a href="http://cmf.yeeyeeyjy.top/lunwen/educational_to_out/checkGrade">查看评分</a></li>
        <li class="layui-nav-item"><a href="http://cmf.yeeyeeyjy.top/lunwen/educational_check_message">查看所有互动</a></li>
        <li class="logOff layui-nav-item"><a href="http://cmf.yeeyeeyjy.top/lunwen/login/loginOut">注销</a></li>
    </ul>
</div>

    <div class="submit_title_text"><p>填写文件名：</p></div>
    <div class="submt_title_input"><input id="input_file_name" name="title" type="text" style="width: 300px; height: 30px" placeholder="请输入文件名"></div>
    <div class="submit_teacher_text"><p>填写外部专业人员名称：</p></div>
    <div class="submt_teacher_input"><input id="input_external_name" name="teacher" type="text" style="width: 300px; height: 30px" placeholder="请输入外部专业人员名称"></div>
    <button id="kk" class="submit_title_btn layui-btn layui-btn-primary">提交</button>

</body>


<script type="text/javascript">
        //ajax 提交到 这个地方 加入表格
        $("button#kk").click(function() {
            var G = document.getElementById('input_file_name').value;
            console.log(G);
            var K = document.getElementById('input_external_name').value;
            console.log(K);
            $.ajax({
                type: "post",
                async: true,
                url: "{:url('http://cmf.yeeyeeyjy.top/lunwen/educational_operate_out_people/test')}",
                data: {
                    file_name: G,
                    external_name: K
                },
                //检测请求成功后返回的数据，登录成功/账号密码错误等等
                success: function (result) {
                    var result_code = JSON.stringify(result.code);  //JSON转换成字符串
                    var result_msg = JSON.stringify(result.msg);

                    if (result_code !== '1') {
                        layer.msg(result_msg);
                    }
                    else {

                        layer.msg(result_msg);  //小弹框提示登录成功，你可以改成跳转到后台页
                        window.location.href = 'http://cmf.yeeyeeyjy.top/lunwen/educational_To_Out';
                    }
                },
                error: function (result) {
                    //这里是请求失败的处理，可以给调试使用或者用户网络问题的时候提示
                    parent.layer.msg("服务器接口异常，请稍后再试");
                    console.log(result);
                }
            });
        });
</script>
</html>